<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('yp','com_default-header'); ?>
<div class="main_all">
<!--主体-->
<div id="main">
  <!--右侧-->
  <div id="right">
    <p id="position"><strong>当前位置</strong>：<?php echo $position;?></p>
    <h3>公司简介</h3>
    <div id="info" class="box">
      <p><?php echo html_entity_decode(str_cut($introduce,500,'...'));?></p><div class="cb"></div>
    </div>
    <h3>最新产品</h3>
    <div class="box p_l_20">
      <ul class="pic_list">
<?php $DATA = get("SELECT id,title,content,userid,thumb,price,quantifier FROM `phpcms_yp_product` WHERE userid='$userid' AND status=99 ORDER BY id DESC", 6, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
<li><a href="<?php echo show_url('product',$r[id]);?>"><img src="<?php echo thumb($r[thumb],98,98);?>" alt="<?php echo $r['title'];?>" width="100" height="100"/><?php echo $r['title'];?></a><strong><?php if($r['price']) { ?>￥<?php echo $r['price'];?>元/<?php echo $r['quantifier'];?><?php } else { ?><a href="<?php echo $siteurl;?>/category-guestbook/label-product/id-<?php echo $r['id'];?>.html">我要询价</a><?php } ?></strong></li>
<?php } unset($DATA); ?>
</ul>
<div class="cb"></div>
    </div>
    <h3>详细介绍</h3>
    <div class="box">
      <table width="732" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th>企业类型：</th>
          <td><?php echo $genre;?></td>
          <th>主营行业：</th>
          <td><?php echo substr($catids,1,-1);?></td>
        </tr>
        <tr>
          <th>经营模式：</th>
          <td><?php echo $pattern;?></td>
          <th>年营业额：</th>
          <td><?php echo $turnover;?></td>
        </tr>
        <tr>
          <th>员工人数：</th>
          <td><?php echo $employnum;?> 人</td>
          <th>公司注册地：</th>
          <td><?php echo $areaname;?></td>
        </tr>
        <tr>
          <th>公司成立时间：</th>
          <td><?php echo $establishtime;?></td>
          <th>联系方式：</th>
          <td><?php echo $address;?></td>
        </tr>
        <tr>
          <th>主营产品或服务：</th>
          <td colspan="3"><?php echo $products;?></td>
        </tr>
      </table>
    </div>
  </div>
  <!--左侧-->
  <div id="left">
<?php if($m_user) { ?>
<h3>热点导航</h3>
<div class="hot_nav">
  <ul>
<?php if(is_array($m_user)) foreach($m_user AS $ms) { ?>
  <li><a href="<?php echo $ms['url'];?>"><?php echo $ms['catname'];?></a></li>
<?php } ?>
  </ul>
</div>
<?php } ?>
    <h3>最新消息</h3>
    <div class="box">
      <ul>
<?php $DATA = get("SELECT * FROM `phpcms_yp_news` WHERE `userid`='$userid' AND status=99 ORDER BY id DESC", 10, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
<li><a href="<?php echo show_url('news',$r[id]);?>" title="<?php echo $r['title'];?>"><?php echo str_cut($r[title],28,'');?></a></li>
<?php } unset($DATA); ?>
      </ul>
    </div>
    <h3>站内搜索</h3>
    <form class="box" action="<?php echo $M['url'];?>web/query.php">
      <input type="text" name="q" size="16"/><input name="search" type="submit" id="search" value="搜索"/><br/>
  <input type="radio" name="type" checked="checked" value="product"/>商品<input type="radio" name="type" value="buy"/>商机<input value="news" type="radio" name="type"/>新闻<input type="hidden" value="search" name="action" /><input name="userid" value="<?php echo $userid;?>" type="hidden" />
    </form>
  </div>
  <div class="cb"></div>
</div>
</div>
<!--尾部-->
<div id="foot"><?php echo $companyname;?><br/> 地址：<?php echo $address;?>
</div>

</body>
</html>